Test Ide Task
Runs plugin tests against the currently selected IntelliJ Platform with the built plugin loaded. It directly extends the Test Gradle task, which allows for an extensive configuration (system properties, memory management, etc.).
This task class also inherits from CustomIntelliJPlatformVersionAware, which makes it possible to create testIde-like tasks using custom IntelliJ Platform versions:
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
import org.jetbrains.intellij.platform.gradle.tasks.TestIdeTask
tasks {
val testPhpStorm by registering(TestIdeTask::class) {
type = IntelliJPlatformType.PhpStorm
version = "2023.2.2"
}
val testLocalIde by registering(TestIdeTask::class) {
localPath = file("/Users/hsz/Applications/Android Studio.app")
}
}Properties
The path to the coroutines Java Agent file.
Holds the Configurations.INTELLIJ_PLATFORM configuration with the IntelliJ Platform dependency added. It should not be directly accessed.
Provides access to the IntelliJ Platform dependency artifact path.
Provides information about the IntelliJ Platform product. The information is retrieved from the product-info.json file in the IntelliJ Platform directory.
An architecture of the Java Runtime currently used for running Gradle.
Java Runtime parent directory.
A custom JavaLauncher instance configured with the resolved runtimeDirectory.
Metadata object of the Java Runtime currently used for running Gradle.
A configuration directory located within the sandboxContainerDirectory.
The container for all sandbox-related directories. The directory name depends on the platform type and version currently used for running a task.
A log directory located within the sandboxContainerDirectory.
A plugins directory located within the sandboxContainerDirectory.
Represents the suffix used i.e., for test-related tasks.
A system directory located within the sandboxContainerDirectory.
An input property to configure the type of the custom IntelliJ Platform.
Functions
Validates that the resolved IntelliJ Platform is supported by checking against the minimal supported IntelliJ Platform version.